import axios from 'axios';

const contentPath = '/message/message'

export function send(destId, param) {
    return axios.post(`${contentPath}/send/${destId}`, param)
}

export function unread(fromId) {
    return axios.get(`${contentPath}/list/${fromId}/unread`)
}

export function read(fromId) {
    return axios.put(`${contentPath}/read/${fromId}`)
}